<?php

/*
 *This is to update gynecologist's details.
 */

include '../../include/config.php';
mysql_query("update baby_mother_gynac set `g_doctor` = '".$_POST['g_doctor']."',`g_address`='".$_POST['g_address']."',`g_city`='".$_POST['g_city']."',`g_country`='".$_POST['g_country']."', `g_tel` = '".$_POST['g_tel']."',`g_mob` = '".$_POST['g_mob']."',`g_first_visit` ='".date('Y-m-d', strtotime($_POST['g_first_visit']))."',`g_visits` = '".$_POST['g_visits']."',`g_last_visit`='".date('Y-m-d', strtotime($_POST['g_last_visit']))."' where `mother_id`='".$_POST['mid']."'   ") or die(mysql_error());
header('Location:../view/pre-pregnancy.php?menu=gynecologist');
?>
